Next | Prev | Up | Top | Contents | Index
Producing Diagnostic Displays
Normally a device or STREAMS driver produces display output in only two cases:
- To advise the operator or administrator of a serious problem.
- To display debugging information during software development.
Both of these purposes are served by the cmn_err() function. It brings to a kernel-level module the abilities that a user-level process gets from printf() and syslog().
- Using cmn_err
-
- Using printf()
-
- Using ASSERT
-
Next | Prev | Up | Top | Contents | Index